﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Xml.Serialization;


namespace PayloadTracker
{
    [Serializable]
    public class Coordinate
    {
        public static readonly Coordinate EMPTY = new Coordinate();


        [XmlAttribute]
        public double Lat;
        [XmlAttribute]
        public double Long;
                
        public Coordinate()
        {
            Long = Lat = double.MinValue;
        }
        public Coordinate(double Lat, double Long)
        {
            this.Lat = Lat;
            this.Long = Long;
        }
        public override string ToString()
        {
            return "{Lat: " + Lat.ToString() + " Long: " + Long.ToString() + "}";
        }
    }
}
